﻿<%@ Page Title="EditSelectedFaNews" Language="C#"  MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true" CodeBehind="EditSelectedFaNews.aspx.cs" Inherits="cnFederal.Admin.EditSelectedFaNews" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            height: 99px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 

 <script language="javascript" type="text/javascript">
     function PrevImg(imgFile) {
         var Preview = document.getElementById('MainContent_imageSelected');        
         Preview.src = imgFile.value;
         Preview.style.width = "100px";
         Preview.style.height = "100px";
        
     }
    </script>

    <script type="text/javascript">
        function setHeight(txtdesc) {
            txtdesc.style.height = txtdesc.scrollHeight + "px";
        }
</script>


      <table width="100%">
        <tr><td align ="center">
            <asp:Label ID="Label1" runat="server" Text="ایجاد و تغییر مطلب" Font-Bold="True" Font-Size="12"></asp:Label>
    
            </td></tr>
        </table>
    <Table runat="server" id="MainTable">

    <tr><td>Date registreded</td><td>   <asp:TextBox ID="txtRegDate" width="170px" 
            runat="server" ToolTip="Kalendar" 
              AutoPostBack="false"  Text ='' TabIndex="21"></asp:TextBox>
             
        
         </td></tr>

            <tr><td>Date Start publish</td><td> 
              <asp:UpdatePanel runat="server" id="UpdatePanel3" updatemode="Conditional">
              <ContentTemplate>
               <asp:TextBox ID="txtDateStartPublish" width="170px" runat="server" ToolTip="Title" 
              AutoPostBack="false"  Text ='' 
                      TabIndex="21" Height="21px"></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender2" TargetControlID="txtDateStartPublish" 
             Format="yyyy-MM-dd" runat="server"
              FirstDayOfWeek="Monday" CssClass="cal_Theme1">
        </cc1:CalendarExtender>
        </ContentTemplate>
        </asp:UpdatePanel>
         </td></tr>

            <tr><td>Date End publish</td><td>   
               <asp:TextBox ID="txtEndPublish" width="170px" runat="server" ToolTip="Title" 
              AutoPostBack="false"  Text ='' TabIndex="21" Height="21px"></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender1" TargetControlID="txtEndPublish" 
             Format="yyyy-MM-dd" runat="server" EnableViewState ="false" 
              FirstDayOfWeek="Monday" CssClass="cal_Theme1">
        </cc1:CalendarExtender>
         </td></tr>

         <tr><td>Type</td>
         <td>
             <asp:DropDownList ID="DropDownListType" runat="server" OnSelectedIndexChanged="DropDownListType_SelectedIndexChanged">
             <asp:ListItem Text="News" Value="1"> </asp:ListItem>
             <asp:ListItem Text="Article" Value="2"> </asp:ListItem>
             <asp:ListItem Text="Statements" Value="3"> </asp:ListItem>
             <asp:ListItem Text="Notes" Value="4"> </asp:ListItem>
             <asp:ListItem Text="Interview" Value="5"> </asp:ListItem>
             <asp:ListItem Text="Activity" Value="6"> </asp:ListItem>
            <asp:ListItem Text="ShortNews" Value="7"> </asp:ListItem>
             <asp:ListItem Text="Custom" Value="8"> </asp:ListItem>
             <asp:ListItem Text="Federalism" Value="9"> </asp:ListItem>
             <asp:ListItem Text="Latin" Value="10"> </asp:ListItem>
             </asp:DropDownList>
         </td>
         </tr>
         <tr><td>Category</td>
         <td>
         <table><tr>
         <td>
         <asp:DropDownList ID="DropDownListCategory" runat="server" 
                 onselectedindexchanged="DropDownListCategory_SelectedIndexChanged">
              <asp:ListItem Text="Democracy" Value="Democracy"> </asp:ListItem>
              <asp:ListItem Text="GeneralArticle" Value="GeneralArticle"> </asp:ListItem>

             <asp:ListItem Text="Federalism" Value="Federalism"> </asp:ListItem>
             <asp:ListItem Text="Politics" Value="Politics"> </asp:ListItem>
             <asp:ListItem Text="Parties" Value="Parties"> </asp:ListItem>
             <asp:ListItem Text="News" Value="News"> </asp:ListItem>
             <asp:ListItem Text="Articles" Value="Articles"> </asp:ListItem>
              <asp:ListItem Text="Statements" Value="Statements"> </asp:ListItem>
              <asp:ListItem Text="Latin" Value="Latin"> </asp:ListItem>
              
             
             </asp:DropDownList>
         </td>
         
         <td> <asp:RadioButton ID="RadioButtonEnable" Text="Enable View" Checked="true" 
                 runat="server" AutoPostBack="True" GroupName="display" 
                 oncheckedchanged="RadioButtonEnable_CheckedChanged" /></td>
         <td><asp:RadioButton ID="RadioButtonDisable" Text="Disable View" Checked="false" 
                 runat="server" GroupName="display" 
                 oncheckedchanged="RadioButtonDisable_CheckedChanged" /></td>
         </tr></table>

             
         </td>
         
         </tr>
           <tr><td>Title</td><td>   
               <asp:TextBox ID="txtTitle" width="500px" runat="server" ToolTip="Title" style="direction:rtl;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="58px" TextMode="MultiLine"></asp:TextBox>
            
        
         </td></tr>

         <tr><td>Header</td><td>   
               <asp:TextBox ID="txtHeader" width="500px" runat="server" ToolTip="Header" style="direction:rtl;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="52px" TextMode="MultiLine"></asp:TextBox>
         </td></tr>

             <tr style="overflow:auto;"><td>Content</td><td style="overflow:auto;">   
               <asp:TextBox ID="txtContent" width="500px" runat="server" ToolTip="Content" style="direction:rtl;  overflow:inherit;"
              AutoPostBack="false"  Text ='' TabIndex="21" Height="200px" TextMode="MultiLine" onkeyup="setHeight(this);" onFocus="setHeight(this);"></asp:TextBox>
         </td></tr>



         <tr><td>Image</td>
         <td>
         
             <asp:TextBox ID="txtImageUrl" runat="server" Width="483px" Visible="False" ></asp:TextBox><br />
             <br />
         
         <asp:FileUpload ID="fileupload1" runat="server" onchange="PrevImg(this)" Enabled="true" />
             
             <asp:Button ID="btnBrows" runat="server" Text="Upload&amp;Refresh" 
                 onclick="btnBrows_Click" />
             <asp:Image ID="imageSelected" runat="server"  Height="100px" Width="100px"  />
             
         </td></tr>
         <tr><td>Author</td>
         <td>
             <asp:DropDownList ID="DropDownListAuthor" runat="server" 
                 onselectedindexchanged="DropDownListAuthor_SelectedIndexChanged">
             </asp:DropDownList>
         </td>
         </tr>

         <tr>
         <td class="style1">
             <asp:Button ID="btnSubmit" runat="server" Text="Save" 
                 onclick="btnSubmit_Click" /></td>
         <td class="style1"></td>
         </tr>


   
    </Table>








</asp:Content>
